package com.ruoyi.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户评价对象 reviews
 *
 * @author jtm
 * @date 2024-12-07
 */
public class Reviews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价id */
    private Long id;

    /** 买家id */
    @Excel(name = "买家id")
    private Long userId;

    /** 订单商品id */
    @Excel(name = "订单商品id")
    private Long orderItemsId;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String desc;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderItemsId(Long orderItemsId)
    {
        this.orderItemsId = orderItemsId;
    }

    public Long getOrderItemsId()
    {
        return orderItemsId;
    }
    public void setRating(Long rating)
    {
        this.rating = rating;
    }

    public Long getRating()
    {
        return rating;
    }
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public String getDesc()
    {
        return desc;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("orderItemsId", getOrderItemsId())
                .append("rating", getRating())
                .append("desc", getDesc())
                .append("createdTime", getCreatedTime())
                .toString();
    }
}
